# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=celluloid
pkgver=0.27
pkgrel=0
pkgdesc="A simple GTK+ frontend for mpv (formerly gnome-mpv)"
url="https://celluloid-player.github.io/"
arch="all"
license="GPL-3.0-or-later"
depends="gsettings-desktop-schemas"
makedepends="
	appstream-glib-dev
	desktop-file-utils
	glib-dev
	gtk+3.0-dev
	libadwaita-dev
	libepoxy-dev
	meson
	mpv-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/celluloid-player/celluloid/releases/download/v$pkgver/celluloid-$pkgver.tar.xz"

build() {
	abuild-meson -Db_lto=true . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
fbfd340ca95f55772f764ef92b155168f1bf59640106e03444713c6df8c9585f6fbf4e53b2994cc204cd6db23bfc5eb5a091fa15972b43f278e0244d81aa57e4  celluloid-0.27.tar.xz
"
